﻿@{
    Layout = null;
}
<script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery.unobtrusive-ajax.js" type="text/javascript"></script>
<!DOCTYPE html>
<html>
<head>
    <title>t6</title>
</head>
<body>
    <div id='up'>
    444
    </div>
    <div>
    </div>
    @Ajax.ActionLink(
    "hi",
    "Details",
    new AjaxOptions()
    {
        UpdateTargetId = "up",
        HttpMethod = "post",

    }
    )

    <br>
    <a href="#" onclick="a()">hi2</a>
    <script>
        function a() {
            $.ajax(
                {
                    type: "GET",
                    url: "/test1/Details",
                    beforeSend: function () {
                        //alert(1)
                    },
                    success: function (data) {
                        $("#up").html("");
                        //$("#up").html(data);
                        //                        $.each(data, function (i, content) {
                        //                           
                        //                            $("#content").html(content.name);
                        //                        });
                    }
                    
                }
                    )
        }
    </script>
</body>
</html>
